<div data-ng-controller="rentDetailController">
    <div class="mt20 ml25 clearfix">
        <span class="fl lh30 f14">投放明细</span>
        <div class="fr btn-group">
            <button class="btn"  ng-click="addNewOne()">新增</button>
        </div>
    </div>
    <div class="table-wrap mt10 ml25" style="min-height: 200px;">
        <table width="100%">
            <thead>
                <tr>
                    <th width="40">序号</th>
                    <th width="180">开通时间</th>
                    <th width="180">结束时间</th>
                    <th width="180">投放金额</th>
                    <th>投放报告</th>
                    <th width="100">操作</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="record in AdList">
                    <td height="40">
                        {{$index + 1}}
                    </td>
                    <td>
                        {{record.startOn | date: "yyyy/MM/dd"}}
                    </td>
                    <td>
                        {{record.endOn | date: "yyyy/MM/dd"}}
                    </td>
                    <td class="lh14">
                        {{record.Money | myCurrency}}
                    </td>
                    <td class="lh14">
                        <div ng-if="record.FileName">
                            <a ng-click="download(record)" class="lh30">{{record.FileName}}</a>
                            <div class="lh30">
                                <a ng-click="view(record)">
                                    预览
                                </a>
                                <a ng-click="delFile(record)">
                                    删除文件
                                </a>
                            </div>
                        </div>
                        <div ng-if="!record.FileName">
                            <div class="button" ngf-select="up(record,$file)">
                                <span>
                                    上传
                                </span>
                            </div>
                        </div>
                    </td>
                    <td>
                        <a ng-click="edit(record)">
                            修改
                        </a>
                        <a ng-click="delSelf(record)">
                            删除
                        </a>
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="no-data" ng-if="AdList &amp;&amp; AdList.length === 0">
            <span>暂无数据</span>
        </div>
    </div>
    <div class="ml25 lh30 f16">投放总金额： <span class="c-red" style="font-weight: bold">{{amount | myCurrency}}</span></div>
</div>